package com.lzj.server.common.controller;

import com.lzj.server.utils.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@RestController
@Slf4j
@RequestMapping("/vimi/comment")
@Tag(name = "评论模块")
public class CommentController {

    @Operation(summary = "发表评论")
    @PostMapping("/publish")
    public Result<?> publish() {
        return Result.success();
    }


    @Operation(summary = "回复评论")
    @PostMapping("/reply")
    public Result<?> reply() {
        return Result.success();
    }


    @Operation(summary = "删除评论")
    @DeleteMapping("/remove")
    public Result<?> remove(@RequestParam Long commentId) {
        return Result.success();
    }

    @Operation(summary = "查询评论列表")
    @GetMapping("/list")
    public Result<?> list() {
        return Result.success();
    }


    @Operation(summary = "查询子评论（回复）")
    @GetMapping("/replies")
    public Result<?> replies() {
        return Result.success();
    }


    @Operation(summary = "点赞评论")
    @PostMapping("/like")
    public Result<?> like() {
        return Result.success();
    }

    @Operation(summary = "取消点赞")
    @PostMapping("/like/{commentId}")
    public Result<?> unlike() {
        return Result.success();
    }
}
